<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SHOP 管理中心 - 权限管理 </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/admin/styles/general.css" rel="stylesheet" type="text/css" />
<link href="/admin/styles/main.css" rel="stylesheet" type="text/css" />
</head>
<style type="text/css">
        #pull_right{
            text-align:center;
        }
        .pagination {
            display: inline-block;
            padding-left: 0;
            margin: 20px 0;
            border-radius: 4px;
        }
        .pagination > li {
            display: inline;
        }
        .pagination > li > a,
        .pagination > li > span {
            position: relative;
            float: left;
            padding: 6px 12px;
            margin-left: -1px;
            line-height: 1.42857143;
            color: #428bca;
            text-decoration: none;
            background-color: #fff;
            border: 1px solid #ddd;
        }

        .pagination > .active > a,
        .pagination > .active > span,
        .pagination > .active > a:hover,
        .pagination > .active > span:hover,
        .pagination > .active > a:focus,
        .pagination > .active > span:focus {
            z-index: 2;
            color: #fff;
            cursor: default;
            background-color: #428bca;
            border-color: #428bca;
        }

</style>

<body>

<h1>
<span class="action-span"><a href="node_add">添加权限</a></span>
<span class="action-span1">SHOP 管理中心 </span><span id="search_id" class="action-span1"> - 权限管理 </span>
<div style="clear:both"></div>
</h1>

<div class="form-div">
  <form action="node_list" name="searchForm" method="get">
    <img src="/admin/images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH">
     <input type="text" name="node_title" size="15">
    <input type="submit" value=" 搜索 " class="button">
  </form>
</div>

<form method="post" action="" name="listForm">
<!-- start brand list -->
<div class="list-div" id="listDiv">

  <table cellpadding="3" cellspacing="1">
    <tbody>
        <tr>
            <th>权限id</th>
            <th>权限名</th>
            <th>权限标题</th>
            <th>启用状态</th>
            <th>等级</th>
            <th>是否在左侧显示</th>
            <th>操作</th>
        </tr>
    
          @foreach ($info as $v) 
      <tr>
            <td class="first-cell" align="center">{{$v->node_id}}</td>
            <td align="center">{{$v->node_name}}</td>
            <td align="center">{{$v->node_title}}</td>
            <td align="center">
              @if ($v->status == 1)
                  <img src="/admin/images/yes.gif" onclick="listTable.toggle(this, 'toggle_show', 1)">
              @else
                  <img src="/admin/images/no.gif" onclick="listTable.toggle(this, 'toggle_show', 1)">

              @endif
            </td>
            <td align="center">
                @if ($v->level == 1)
                    控制器
                @else
                    方法
                @endif
            </td>
            <td align="center">
                @if ($v->display == 1)
                    显示
                @else
                    不显示
                @endif
            </td>
            <td align="center">
                <a href="node_edit/{{$v->node_id}}" title="编辑">编辑</a> |
                <a href="node_del/{{$v->node_id}}" title="删除">禁用</a> |
                <a href="node_back/{{$v->node_id}}" title="还原">还原状态</a>
            </td>
        </tr>
    @endforeach

  </tbody></table>
  <div id="pull_right">
        <div class="pull-right">
            {!!$info->appends(array('node_title'=>$node_title))->render()!!}
        </div>
     </div>
<!-- end brand list -->
</div>
</form>

</body>
</html>